import { getToken, setToken } from '@/utils/storage.js'
const state = {
  tokenInfo: getToken()
}
const mutations = {
  setTokenInfo (state, tokenObj) {
    state.tokenInfo = tokenObj
    setToken(tokenObj)
  }
}
const getters = {}
const actions = {}

export default {
  namespaced: true,
  state,
  mutations,
  getters,
  actions
}
